package com.test;


import com.visutech.common.httpclient.HttpClientResultBean;
import com.visutech.common.httpclient.HttpClientUtils;

/**
 * Created by 程振奇 on 2017/11/29.
 */
public class HttpClientUtil {
    public static void main(String[] args) throws Exception {
        //HttpClientUtils.httpGetRequest("http://www.baidu.com");

        HttpClientUtils httpClientUtils = new HttpClientUtils();

        HttpClientResultBean result = httpClientUtils.httpPostRequest("http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip=218.192.3.42","GBK");
        System.out.println(result.getResultInfo());
    }
}
